import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
    title: '小标题',
    count: 100
  },
  mutations: {
    addCount (state, n) {
      state.count = state.count + n
    }
  }
})
// 导出
export default store
